class sumarg
{
	public static void main(String[] args)
	{
		System.out.println("sum of two numbers="+add(20,30));
		System.out.println("sum of two numbers="+add(20,30,40));
	}
	public static int add(int n1,int n2)
	{
		int sum=0;
		sum=n1+n2;
		return sum;
	}
	public static int add(int n1,int n2,int n3)
	{
		int sum=0;
		sum=n1+n2+n3;
		return sum;
	}
	
}